﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication1
{
    class Machine
    { 
        public int stage;
        public string machine;
        public Dictionary<String, Materials> materials = new Dictionary<String,Materials>();
        //nethours key = epoch!
        public Dictionary<int, float> nethours = new Dictionary<int, float>();

        public Machine(string machine, int stage, Dictionary<int, float> nethours)
        {
            this.stage = stage;
            this.machine = machine;
            this.nethours = new Dictionary<int,float>(nethours);
            
        }

        public String describeYourself()
        {
            String output = "I am MACHINE :" + machine +"\n";
            output += ", stage: " + stage+". Materials I produce are:\n";
            foreach (String mat_key in materials.Keys)
            {
                output += mat_key + ",";
            }
            return output;
        }
    }
}
